<?php
/*
 * View class (template)
 * - will generate the proper metatags for Facebook Sharing.
 *
 * @author Johan Bergqvist, presis.se
 *
 * <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml">
  <head>
    <title>The Rock (1996)</title>
    <meta property="og:title" content="The Rock"/>
    <meta property="og:type" content="movie"/>
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
    <meta property="og:site_name" content="IMDb"/>
    <meta property="fb:admins" content="USER_ID"/>
    <meta property="og:description"
          content="A group of U.S. Marines, under command of
                   a renegade general, take over Alcatraz and
                   threaten San Francisco Bay with biological
                   weapons."/>

 */


class Facebook {

    protected $fbPageTitle;             // facebook - Title for shared page
    protected $fbType = 'website';      // facebook - Type of Shared Material eg.Movie, website or company
    protected $fbUrl;                   // Url for shared link
    protected $fbImageUrl;                 // Image-URL for shared LINK
    protected $fbSiteName;              // Site Name for shared link. Eg. site.com
    protected $fbDescription;           // Description of content in shared link.
    protected $fbAdmins = 'USER_ID';    //
    protected $fbMetaData = array();

    //function __construct($siteName,$pageTitle,$type,$url,$imageUrl,$description)
    function __construct() {
       /* $this->fbSiteName = $siteName;
        $this->fbPageTitle = $pageTitle;
        $this->fbType = $type;
        $this->fbUrl = $url;
        $this->fbImageUrl = $imageUrl;
        $this->fbDescription = $description;
        */
    }

        /*
     * Send
     */
    function setMetaData($property,$content){
        $row = sizeof($this->fbMetaData);
        $this->fbMetaData[$row]['property'] = $property;
        $this->fbMetaData[$row]['content'] = $content;
    }

    function getMetaData(){
        return $this->fbMetaData;
    }

        function test(){
        echo "testtest";
        }

}

?>